{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.js}"></script>

<body>
<style>
label.error {margin-left:2em; color:#FF0000;}
h3{border-bottom:1px solid #ddd;margin:10px 0;padding-bottom:5px;}
input{vertical-align:middle;margin:0 5px 0 0;}
label{display:inline-block;margin-bottom:10px;width:125px;}
.tab-frame{width:900px;}
</style>
<div class="sub-body">
<div class="tab-frame">
<div class="tab-title-1"><span>{$lang.edit_role}</span></div>
<form method="post" id="role_form">
<table width="100%" cellspacing="0" cellpadding="0" class="tab-display">
	<tr>
		<th width="70" align="right">{$lang.role_name}：</th>
		<td align="left"><input type="text" name="role_name" value="{$role_info.role_name}" id="role_name" disabled class="input-1" /></td>
	</tr>
	<tr>
		<th align="right">{$lang.role_acl}：</th>
		<td align="left">
        {foreach from=$menus.menus item=menu key=menukey}
        <h3>{$menukey}</h3>
           {foreach from=$menu item=item}
        <label><input type="checkbox" name="acl[]" {if in_array($item,$role_info.acl)}checked{/if} value="{$item}" />{$menus.items.$item}</label>
        	{/foreach}
        {/foreach}
        </td>
	</tr>

	<tr>
		<td colspan="2" align="center"><input type="submit" value="{$lang.submit}" class="btn-2" /></td>
	</tr>
</table>
</form>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div>
</div>
</body>
</html>